package com.swas.entity;

import java.io.Serializable;

/**
 * buy_back
 * @author 
 */
public class BuyBack implements Serializable {
    private Integer id;

    private Integer buycheckid;

    private Long realprice;

    private Integer realbuycount;

    private Long realcost;

    private String dec;

    private String status;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBuycheckid() {
        return buycheckid;
    }

    public void setBuycheckid(Integer buycheckid) {
        this.buycheckid = buycheckid;
    }

    public Long getRealprice() {
        return realprice;
    }

    public void setRealprice(Long realprice) {
        this.realprice = realprice;
    }

    public Integer getRealbuycount() {
        return realbuycount;
    }

    public void setRealbuycount(Integer realbuycount) {
        this.realbuycount = realbuycount;
    }

    public Long getRealcost() {
        return realcost;
    }

    public void setRealcost(Long realcost) {
        this.realcost = realcost;
    }

    public String getDec() {
        return dec;
    }

    public void setDec(String dec) {
        this.dec = dec;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BuyBack other = (BuyBack) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBuycheckid() == null ? other.getBuycheckid() == null : this.getBuycheckid().equals(other.getBuycheckid()))
            && (this.getRealprice() == null ? other.getRealprice() == null : this.getRealprice().equals(other.getRealprice()))
            && (this.getRealbuycount() == null ? other.getRealbuycount() == null : this.getRealbuycount().equals(other.getRealbuycount()))
            && (this.getRealcost() == null ? other.getRealcost() == null : this.getRealcost().equals(other.getRealcost()))
            && (this.getDec() == null ? other.getDec() == null : this.getDec().equals(other.getDec()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBuycheckid() == null) ? 0 : getBuycheckid().hashCode());
        result = prime * result + ((getRealprice() == null) ? 0 : getRealprice().hashCode());
        result = prime * result + ((getRealbuycount() == null) ? 0 : getRealbuycount().hashCode());
        result = prime * result + ((getRealcost() == null) ? 0 : getRealcost().hashCode());
        result = prime * result + ((getDec() == null) ? 0 : getDec().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", buycheckid=").append(buycheckid);
        sb.append(", realprice=").append(realprice);
        sb.append(", realbuycount=").append(realbuycount);
        sb.append(", realcost=").append(realcost);
        sb.append(", dec=").append(dec);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}